package com.example.shiXun.controller.api;

import com.example.shiXun.base.result.Results;
import com.example.shiXun.domain.SysUser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author ：meet
 * @date ：Created in 2020/4/11 1:06
 */
@RestController
@RequestMapping("${api-url}")
public class ApiController {

    @RequestMapping("/getPage")
    public ModelAndView getPage(ModelAndView modelAndView,String pageName){
        modelAndView.setViewName(pageName);
        return modelAndView;
    }

//    @RequestMapping("/getPage")
//    public Results<SysUser>(ModelAndView modelAndView,String pageName){
//        modelAndView.setViewName(pageName);
//        return modelAndView;
//    }


}
